package source;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;

/**
 * This simple tag implements footer.
 * 
 * @author Chen Lei
 *
 */
public class FooterTag extends SimpleTagSupport {
	/**
	 * Rewrite doTag method to implement show footer in .JSP
	 * 
	 *
	 */
	public void doTag() throws JspException, IOException {

			String outPrint = " <footer>\r\n" + 
					"         <div class=\"container\">\r\n" + 
					"            <div class=\"copy text-center\">\r\n" + 
					"               <h4>Copyright Enterprise BBS <a href='#'>Website</a></h4><br>\r\n" + 
					"                Contact us: <a href='#'>1512342456@qq.com</a>\r\n" + 
					"            </div>\r\n" + 
					"         </div>\r\n" + 
					"      </footer>";
			// 在页面上输出页脚
			getJspContext().getOut().write(outPrint);

	}
}
